
<?php //echo validation_errors('<div class="error">', '</div>'); ?>
<?php echo validation_errors(); ?>
<?php echo validation_errors('<div class="error">', '</div>'); ?>
<?php echo form_open_multipart() //form_open //form_open_multipart?>

<?php 
$data = array('name'=>'title','id'=>'title','value'=> $model['title'],'maxlength'=>50);
echo form_input($data)?>

<button value="save" name="btnAction">Save</button>
<!--<input type="submit" name="btnAction" value="Save"  />-->
<!--<button name="btnAction" value="save">Save</button>-->
<?php echo form_close()?>